<template>
  <div>
    <input type="text" @keyup.enter="hand" @keyup.esc="back">
  </div>
</template>

<script>
export default {
  methods: {
    hand(e){
    console.log('按下了回车键');
    },
    back() {
    console.log('按下了返回键');
  }
}
}
</script>

<style>

</style>